package com.ok.api.client;

import com.ok.api.client.fallback.PrizeFallback;
import com.ok.api.domain.po.OkPrize;
import com.ok.common.domain.po.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName PrizeClient
 * @Description TODO
 * @Author hw
 * @Date 2024/5/24 0:29
 */
@FeignClient(value = "ok-prize", fallbackFactory = PrizeFallback.class)
public interface PrizeClient {
    /*
    根据id查询奖品
     */
    @GetMapping("/prize/prizeInfo")
    public Result<OkPrize> prizeInfo(@RequestParam Integer id);
}
